package org.mrjbee.share.it.easy.client.daemon;

import java.io.FileNotFoundException;
import java.io.IOException;

public class EntryPoint 
{
    public static void main(String[] args) throws FileNotFoundException, IOException{
    	
    	if (args.length != 1){
    		System.out.println("There should be one argument which point to configuration file.");
    		System.exit(1);
    	}
    	
    	//read properties
    	ConfigurationProvider configuration = new ConfigurationProvider();
    	configuration.initFromFile(args[0]);
    	
    	final Daemon daemon = new Daemon(configuration);
    	daemon.start();
    }
}
